<template>
	<view class="all">
		<view class="body">
			<text>热门推荐</text>
			<u-icon name="arrow-right" />
		</view>
		<view style="display: flex;justify-content: space-around;		display: flex;
		overflow-x: auto;
		display: -webkit-box;
		overflow-y: hidden;">
			<view class="body_1" @click="submit(item)" v-for="(item,index) in data">
				<view class="body_1_1" :style="{
				 'background-image': 'url(' + item.logo_image + ')' 
			}">
					<image v-if="item.status==1" :src="'https://s4.ax1x.com/2022/01/18/7BS0OS.png'" style="width:64rpx ;height: 36rpx;
			margin-top: 20rpx; margin-left: 20rpx;" />
					<image v-if="item.activity==3" :src="'https://s4.ax1x.com/2022/01/18/7BpA6f.png'" style="width:64rpx ;height: 36rpx;
			margin-top: 20rpx; margin-left: 20rpx;" />

				</view>
				<view class="body_1_12">给管理者们的沟通训尤其在竞争日益激烈的今...</view>
				<view class="body_1_12_2">尤其在竞争日益激烈的今尤其在竞争日益激烈的今...</view>
				<view class="body_1_13"><text>{{item.study}}</text>人已学习</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: ['data'],
		methods: {
			submit(a) {
				uni.navigateTo({
					url: `/pages/Boutique/details?cur_id=${a.cur_id}`
				});
			}

		}

	}
</script>
<style lang="scss" scoped>
	.body_1 {
		margin-top: 20rpx;
		width: 52%;
	}

	.all {

		padding: 20rpx 20rpx 20rpx 20rpx;

		.body_1_13 {
			font-size: 24rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: #131314;
			opacity: 1;

			text {
				color: #FF2424;
			}
		}

		.body_1_12_2 {
			font-size: 28rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: #91969A;
			opacity: 1;
			overflow: hidden;
			text-overflow: ellipsis;
			display: -webkit-box;
			-webkit-line-clamp: 1;
			-webkit-box-orient: vertical;
		}

		.body_1_12 {
			overflow: hidden;
			text-overflow: ellipsis;
			display: -webkit-box;
			-webkit-line-clamp: 1;
			-webkit-box-orient: vertical;
			margin: 10rpx 0 10rpx 0;
			font-size: 32rpx;
			font-family: Source Han Sans CN;
			font-weight: bold;
			color: #131314;
			opacity: 1;
		}

		.body_1_1 {
			width: 336rpx;
			background-size: 100% 100%;
			background-repeat: no-repeat;
			border-radius: 8rpx;
			height: 196rpx;
		}

		.body {
			display: flex;
			justify-content: space-between;

			text {
				font-size: 32rpx;
				font-family: Source Han Sans CN;
				font-weight: bold;
				color: #131314;
				opacity: 1;
			}
		}
	}
</style>
